package aygx.Configuration.yml.config;

import aygx.Configuration.yml.entity.Person;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author 暗影孤星
 * @date 2022/5/4 22:48
 * @description
 * @EnableConfigurationProperties 引入某配置类，该配置类不能再被@Component注解 该配置类必须被@ConfigurationProperties注解
 */
@Configuration
@EnableConfigurationProperties(Person.class)
public class ConfigurationPropertiesConfig {
}
